#include <string>
#include <vector>
#include <stdio.h>

#define YYSTYPE std::string


class Util
{
public:
	Util();
	
public:
	//第行开头都加段空格
	std::string AddSpace(std::string str);

private:
	std::string GetSpace();
};



class TypeItem
{
public:
	TypeItem() {
		name = "";
		key = -1;
	}
	TypeItem(std::string name, int key) {
		this->name = name;
		this->key = key;
	}
	
public:
	std::string name;
	int key;
};

class TypeStat
{
public:
	 TypeStat();

public:
	void Reset();
	void AddTypeItem(TypeItem item);
	void AddTypeItem(std::string name, int key);
	TypeItem *GetTypeItem(std::string name);
private:
	std::vector<TypeItem> v;
};